package com.bdc.biz;

import java.io.UnsupportedEncodingException;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.MarshalBase64;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import org.ksoap2.transport.HttpTransportSE;

import android.widget.Toast;

public class MemorizeBiz {

	public static MemorizeItem getNextItem(){
		new MemorizeBiz().getWeather() ;
		return new MemorizeItem() ;
	}
	
	private static final String NAMESPACE = "http://impl.webservice.webfolder.digimaple.com/";

	// WebService地址
	private static String URL = "http://192.168.1.188:8080/services/file";

	private static final String METHOD_NAME = "getFileList";

	private static String SOAP_ACTION = "http://192.168.1.188:8080/services/file";

	private SoapObject detail;

	public void getWeather() {
		try {

			
			
			HttpTransportSE httpt = new HttpTransportSE(URL); 
			SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10); 

			SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); 
			envelope.setOutputSoapObject(request); 
			httpt.call("", envelope); 
			SoapObject body = (SoapObject)envelope.bodyIn; 
			System.out.println(body.getProperty(0));

			
			return;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
